package com.hs.shirodemo01.service;

import com.hs.shirodemo01.pojo.TbPermission;
import com.hs.shirodemo01.pojo.TreeSelect;

import java.util.List;

/**
 * 返回前端所需的属性结构
 * 权限表需要有parent_id字段    实体类需要有List<TbPermission> children 属性来做辅助
 * @ClassName MenuService
 * @Description
 */
public interface MenuService {

    List<TbPermission> buildMenuTree(List<TbPermission> menus);
    List<TreeSelect> buildMenuTreeSelect(List<TbPermission> menus);
}
